package com.ruoyi.system.mapper;

import java.util.List;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.system.domain.DriverInfo;
import com.ruoyi.system.domain.VehicleDriver;

/**
 * 驾驶员信息Mapper接口
 * 
 * @author wp
 * @date 2023-08-10
 */
public interface DriverInfoMapper extends BaseMapper<DriverInfo> {

    public List<DriverInfo> list(DriverInfo driverInfo);

    public DriverInfo get(Long id);

    /**
     * 根据设备ID获取所有驾驶员名字组
     * @param equipmentId
     * @return
     */
    String getNameGroupByEquipmentId(Long equipmentId);

    /**
     * 获取车辆的驾驶员
     * @param vehicleIds
     * @return
     */
    List<VehicleDriver> getDrivers(List<Long> vehicleIds);

    //根据身份证号查询对应的数据
    DriverInfo getInfoByIdCard(String idCard);
}
